package com.cskaoyan.service.admin;

import com.cskaoyan.bean.BaseParam;
import com.cskaoyan.bean.BaseRespData;
import com.cskaoyan.bean.admin.system.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface RoleService {

    List<RoleInfoOptionsVo> getRoles();

    BaseRespData queryRoleList(String name, BaseParam param);

    RoleCreateVo createRole(RoleCreateBo roleAddBo);

    int updateRole(RoleUpdateBo roleUpdateBo);

    int delete(RoleDeleteBo roleDeleteBo);

    int addPermissions(PermissionsBo permissionsBo);

    PermissonsVo getPermissions(Integer roleId);
}
